home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1859 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.tu-ilmenau.de!usenet
  2. From: Lars Krueger <ai108@rz.tu-ilmenau.de>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help with simple code
  5. Date: Wed, 17 Jan 1996 12:37:25 +0100
  6. Organization: Technische Universitaet Ilmenau
  7. Message-ID: <30FCDF75.373401FF@rz.tu-ilmenau.de>
  8. References: <4dbak5$oij@ionews.io.org> <tcpnntpd.16.1.16.0.51.40.2781597121.342670@the-fix.sos.on.ca>
  9. NNTP-Posting-Host: scenic-03.rz.tu-ilmenau.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b5 (X11; I; Linux 1.2.13 i586)
  14.  
  15. verneb@the-fix.sos.on.ca wrote:
  16. -- snip --
  17. > I >and here's the error:
  18. > I >
  19. > I >In function `main':
  20. > I >undefined reference to `pow'
  21. > I >
  22. > I >I don't understand. `pow' is a function, not a variable?
  23. > I >Can anyone tell me what's wrong?
  24. > I >
  25. -- snip --
  26.  
  27. Hi.
  28.  
  29. This is obviously a linker error. It means the linker - whitch "glues"
  30. the different object files (compiles *.C files) to a executable - 
  31. can't find an object file which contains code for "pow".
  32. All you have to do is finding the library where pow is supposed to be 
  33. inside and give this file name to the linker (using the MAKEFILE file
  34. or your project file or whatever your compiler wants).
  35.  
  36. Hope that helps
  37.  
  38. Lars.
  39.